<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--

    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.

-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title>Project Properties Window: Run</title>
<link rel="stylesheet" href="ide.css" title="Oracle BLAFDoc" type="text/css"/>
</head>

<body>
<p><a id="org.netbeans.modules.web.clientproject.ui.customizer.RunPanel" name="org.netbeans.modules.web.clientproject.ui.customizer.RunPanel"></a></p>
<div id="NBCSH4349"><!-- infolevel="all" infotype="General" --><a id="sthref585" name="sthref585"></a>
<h1>Project Properties Window: Run</h1>
<a name="BEGIN" id="BEGIN"></a>
<p>You open the HTML5/JS Project Properties dialog box by right-clicking any HTML5/JS project node in the Projects window and choosing Properties.</p>
<p>The Run page enables you to specify the target browser and the page that opens in the browser when you run the project. In this page you can specify the following options. 
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG1953">
<param name="text" value="<html><u>How?</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>

<table summary="User interface elements and descriptions" dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0">
<col width="24%" />
<col width="*" />
<thead>
<tr align="left" valign="top">
<th align="left" valign="bottom" id="r1c1-t16">Element</th>
<th align="left" valign="bottom" id="r1c2-t16">Description</th>
</tr>
</thead>
<tbody>
<tr align="left" valign="top">
<td align="left" id="r2c1-t16" headers="r1c1-t16">
<p>Browser</p>
</td>
<td align="left" headers="r2c1-t16 r1c2-t16">Select the browser that the IDE uses to run the application.
<p>The following options are available when Chrome with NetBeans Integration or Embedded WebKit Browser are selected.</p>
<ul>
<li>Auto-refresh. When selected, the browser page is automatically reloaded when the HTML file or any files that are used by the HTML file are saved.</li>
<li>Synchronize Navigator and browser element highlighting. When selected, when your cursor hovers over an element in the Navigator of the IDE the corresponding element is highlighted in the browser. When deselected the element in the browser is not highlighted when the element in the Navigator is selected.</li>
</ul>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r3c1-t16" headers="r1c1-t16">
<p>Start File</p>
</td>
<td align="left" headers="r3c1-t16 r1c2-t16">The file that is displayed in the browser when you run the application. The default page is typically <code dir="ltr">index.html</code>.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r4c1-t16" headers="r1c1-t16">
<p>Web Server</p>
</td>
<td align="left" headers="r4c1-t16 r1c2-t16">Select one of the following server options from the drop-down list.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r5c1-t16" headers="r1c1-t16">
<p>Lightweight Embedded</p>
</td>
<td align="left" headers="r5c1-t16 r1c2-t16">Select this option to use the lightweight embedded web server. When you run the project the IDE will open the browser to the application index page on localhost.
<p>This option is the default.</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r6c1-t16" headers="r1c1-t16">
<p>External</p>
</td>
<td align="left" headers="r6c1-t16 r1c2-t16">Select this option to use a server installation that is hosting the application. If you select this option you need to specify the URL for the application. When you run the project the IDE will attempt to open the specified URL in the browser. It is not possible to manage the external server from the IDE.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r7c1-t16" headers="r1c1-t16">
<p>Web Root</p>
</td>
<td align="left" headers="r7c1-t16 r1c2-t16">This option is only available when you use the Embedded Lightweight web server. If no web root is specified the URL for the project will be http://localhost:&lt;PORT_NUMBER&gt;. You should specify a web root property if you want to run multiple projects simultaneously.</td>
</tr>
</tbody>
</table>
<br />
<!-- -->
<a id="NBCSH4356" name="NBCSH4356"></a>
<hr><p><b>Related Topics</b></p>
<p><i>Developing Applications with NetBeans IDE</i>, 
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG1952">
<param name="text" value="<html><u>&quot;Running an HTML5 Application&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>

<!-- -->
<!-- Start Footer -->


<table summary="" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="left" width="86%"><a href="legal_notice.htm">
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.</a>
</td>
</tr>
</table>
<!-- -->
</body>
</html>
